package workbench.service;

import settings.domain.User;
import workbench.domain.Tran;
import workbench.domain.TranHistory;
import workbench.exception.AddTranException;
import workbench.exception.CreateTranHistoryException;
import workbench.exception.DeleteException;
import workbench.exception.UpdateException;

import java.util.List;
import java.util.Map;

public interface TranService {
    List<User> getUserList();

    void addTran(Tran tran) throws AddTranException;

    Tran getTranById(String id);

    List<TranHistory> getTranHistoryListByTranId(String tranId);

    void changeStage(Tran tran) throws UpdateException, CreateTranHistoryException;

    List<Map> getCharts();
}
